package demo;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        CardGame cardGame = new CardGame();
        List<Card> ret =  cardGame.buyCard();
        System.out.println("买牌：");
        System.out.println(ret);

        System.out.println("洗牌：");
        cardGame.shuffle(ret);
        System.out.println(ret);

        System.out.println("揭牌：");
        List<List<Card>> hand = cardGame.getCard(ret);//实现揭牌方法
        for(int i = 0;i < 3;i++) {
            System.out.println("第" + (i + 1) + "个人的牌：" + hand.get(i));
        }

        System.out.println("剩下的牌：" + ret);
    }
}
